﻿<UserControl x:Class="GeoPlugin.UnitedStatesViewBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Width="800" Height="600">
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Storyboard x:Name="ShowPopup" x:Key="ShowPopup2">
                <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="GridMenu" Storyboard.TargetProperty="(UIElement.Opacity)">
                    <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
            <Storyboard x:Name="HidePopup" x:Key="HidePopup2">
                <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="0" Storyboard.TargetName="GridMenu" Storyboard.TargetProperty="(UIElement.Opacity)">
                    <DiscreteDoubleKeyFrame KeyTime="0" Value="0" />
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>
        </Grid.Resources>
        <Viewbox x:Name="MapsViewbox">
            <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    x:Name="MapsHotSpot" Width="1200" 			
                    Height="1000"
                    UseLayoutRounding="False">
                <Image x:Name="Image" Height="1000" Stretch="Fill" Width="1200" Canvas.Left="0" Canvas.Top="0"/>

                <Canvas Name="NewYork" Width="1200" Height="1000">
                    <Path Data="M950.67873,332.57919 L950.67873,345.65404 1042.9386,320.76729 1051.9883,336.60422 1070.0874,343.39148 1076.875,356.966 1088.1867,359.22849 1097.6032,352.37999 1110.7863,342.79213 1113.0733,341.12883 1083.6614,343.39122 1079.1366,313.98009 1079.1366,280.0435 1070.0869,241.58242 1063.2996,205.38438 1036.1505,209.90954 1015.7887,243.84555 1018.0511,266.46956 1015.7887,275.51916 988.63964,291.35597 966.01541,293.61837 961.49056,307.19277 968.27783,323.02958 z" Fill="#FFD61B12" Height="154.847" Canvas.Left="950.679" Stretch="Fill" Stroke="Black" Canvas.Top="205.382" Width="163.396" Opacity="0.5"/>
                </Canvas>
            </Canvas>
        </Viewbox>

        <Popup x:Name="contextMenu" Opened="contextMenu_Opened" Closed="contextMenu_Closed">
            <Grid x:Name="GridMenu" Opacity="0.9">
                <Border BorderBrush="Azure" BorderThickness="1" CornerRadius="3" >

                    <ListBox x:Name="contextListBox" Opacity="0.9" />

                </Border>
            </Grid>
        </Popup>
        
    </Grid>
</UserControl>
